import http from '../utils/http'

export const reqListMerchandiseByAnchorId = (param) =>{
  return http.get('/live/minimall/list',param,{
    'content-type': 'application/x-www-form-urlencoded'
  })
}

/**
 * 生成UserSig并注册IMUser
 * @param {*} param 
 */
export const reqGetUserSig = (param) =>{
  return http.get('/live/group/join',param,{
    'content-type': 'application/x-www-form-urlencoded'
  })
}

export const reqFollow = (param) =>{
  return http.post('/live/follow',param)
}

/**
 * 检验是否已经关注
 * @param {*} param 
 */
export const reqCheckFollow = (param) =>{
  return http.get('/live/follow/check',param,{
    'content-type': 'application/x-www-form-urlencoded'
  })
}